#include "Module.h"

Module::Module(std::string filename, uint64_t address, size_t size, std::map<std::string, SymbolResolved> symbols_resolved, void * init_array):
	filename(filename),address(address),size(size),symbols(symbols_resolved),init_array(init_array)
{
}

Module::~Module()
{
}

SymbolResolved * Module::find_symbol(std::string name)
{
	if (symbols.count(name) != 0)
	{
		return &symbols[name];
	}
	return nullptr;
}
